using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

using DotNetNuke;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Tabs;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Security;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;

using Common;

namespace tm_TypicalStoreList
{
    partial class Viewtm_TypicalStoreList : PortalModuleBase, IActionable
    {

        #region Optional Interfaces

        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Registers the module actions required for interfacing with the portal framework
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        /// <remarks></remarks>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public ModuleActionCollection ModuleActions
        {
            get
            {
                ModuleActionCollection Actions = new ModuleActionCollection();
                Actions.Add(this.GetNextActionID(), Localization.GetString(ModuleActionType.AddContent, this.LocalResourceFile), ModuleActionType.AddContent, "", "", this.EditUrl(), false, SecurityAccessLevel.Edit, true, false);
                return Actions;
            }
        }

        #endregion
        protected void btnShowAll_Click(object sender, EventArgs e)
        {
            int tabId = Common.appLibs.GetTabIdByName(PortalId, "store");
            Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(tabId));
        }
        protected void btnRaovat_Click(object sender, EventArgs e)
        {
            int tabId = appLibs.GetTabIdByName(PortalId, "smalladvert");
            Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(tabId));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Tm_typicalStoreLogoList1.myPortalId = PortalId;
        }
}
}

